var selected = 0;
var url = location.href.substr(location.href.lastIndexOf("/")+1);
document.writeln('	<table width="100%" height="29" border="0" cellpadding="0" cellspacing="0">');
for (var i=0;i<item.length;i++){
	document.writeln('	<tr  onClick="ShowItem(' +i+ ');" width=227 style="cursor:hand; color:#000000" id="menu' +i+ '">');
	document.writeln('      <td id="select'+i+'" background="images/hongniu.jpg" width="172" height="39" align="center" class="b2"><B>' +item[i][0]+ '</B></td>');
	//document.writeln('	    <td   class="b2" ><img src="xiaojiantou.png" width="34" height="44" id="tImg' +i+ '"></td>	');
	document.writeln('	</tr>');
	document.writeln('	<tr id=item' +i+ ' style="display:none;"> ');
	document.writeln('	<td height="45" colspan="2" bgcolor="#FFFFFF" class="b2" >');
	document.writeln('		<table width="158" height="29" border="0" cellpadding="0" cellspacing="0">');
	for (var j=0;j<item[i][1].length;j++){
		if(item[i][1][j][1] == url)
			selected = i;
		document.writeln('	<tr width="158" height="29"> ');
		document.writeln('		<td width="8" align="right" bgcolor="#FFFFFF" class="b2"><img src="http://finance.sina.com.cn/money/images/cj_jsq_lj_009.gif" width="9" height="45"></td>');
		document.writeln('		<td align="center" width="158" height="29"  bgcolor="#FFFFFF" class="b2 linkblue" ><table width="158" height="29" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td id="select_'+i+j+'" background="" align="left"><img src="" width="1" height="1"><a  href="' +item[i][1][j][1]+ '" target="content" onClick="ShowItemi(' +i+ ',' +j+ ')" onmouseover="ShowItemi(' +i+ ',' +j+ ')" onmouseout="ShowItemii(' +i+ ',' +j+ ')";><B> ' +item[i][1][j][0]+ '</B></a></td></tr></table></td>');
		document.writeln('		</tr>');
	}
	document.writeln('		</table>');
	document.writeln('	</td>');
	document.writeln('	</tr>');
}
document.writeln('	</table>');

ShowItem(selected);